home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / draw_bou.swf / scripts / frame_5 / DoAction.as < prev   
Encoding:
Text File  |  2007-05-10  |  993 b   |  40 lines

  1. function itemHandler1(obj, item)
  2. {
  3.    getUrl("http://www.maxgames.com", "_blank");
  4. }
  5. function itemHandler2(obj, item)
  6. {
  7.    getUrl("http://www.reactorgames.com", "_blank");
  8. }
  9. function itemHandler3(obj, item)
  10. {
  11.    stop();
  12. }
  13. function itemHandler4(obj, item)
  14. {
  15.    play();
  16. }
  17. function itemHandler5(obj, item)
  18. {
  19.    _quality = "high";
  20. }
  21. function itemHandler6(obj, item)
  22. {
  23.    _quality = "medium";
  24. }
  25. function itemHandler7(obj, item)
  26. {
  27.    _quality = "low";
  28. }
  29. drawarea = 0;
  30. root_cm = new ContextMenu();
  31. root_cm.hideBuiltInItems();
  32. aaa_cmi = new ContextMenuItem("Visit MaxGames.com",itemHandler1);
  33. bbb_cmi = new ContextMenuItem("Visit ReactorGames.com",itemHandler2);
  34. eee_cmi = new ContextMenuItem("High Quality",itemHandler5);
  35. fff_cmi = new ContextMenuItem("Mid Quality",itemHandler6);
  36. ggg_cmi = new ContextMenuItem("Low Quality",itemHandler7);
  37. eee_cmi.separatorBefore = true;
  38. root_cm.customItems.push(aaa_cmi,bbb_cmi,eee_cmi,fff_cmi,ggg_cmi);
  39. _root.menu = root_cm;
  40.